package com.edu.ujn.myh.domain;

// default package

import java.util.HashSet;
import java.util.Set;

/**
 * PrivInfo entity. @author MyEclipse Persistence Tools
 */

public class PrivInfo implements java.io.Serializable {

	// Fields

	private Integer id;
	private String privName;
	private String url;
	private Integer pid;
	private Integer index;
	private String remark;
	private Set rolePrivInfos = new HashSet(0);

	// Constructors

	/** default constructor */
	public PrivInfo() {
	}

	/** minimal constructor */
	public PrivInfo(String privName, String url, Integer pid, Integer index) {
		this.privName = privName;
		this.url = url;
		this.pid = pid;
		this.index = index;
	}

	/** full constructor */
	public PrivInfo(String privName, String url, Integer pid, Integer index,
			String remark, Set rolePrivInfos) {
		this.privName = privName;
		this.url = url;
		this.pid = pid;
		this.index = index;
		this.remark = remark;
		this.rolePrivInfos = rolePrivInfos;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getPrivName() {
		return this.privName;
	}

	public void setPrivName(String privName) {
		this.privName = privName;
	}

	public String getUrl() {
		return this.url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Integer getPid() {
		return this.pid;
	}

	public void setPid(Integer pid) {
		this.pid = pid;
	}

	public Integer getIndex() {
		return this.index;
	}

	public void setIndex(Integer index) {
		this.index = index;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Set getRolePrivInfos() {
		return this.rolePrivInfos;
	}

	public void setRolePrivInfos(Set rolePrivInfos) {
		this.rolePrivInfos = rolePrivInfos;
	}

}